import java.util.ArrayList;
import java.util.List;

/**
 * 1. Full GC 次数过多
 * 2. CPU 过高
 * 3. 不定期出现接口耗时现象
 * 4. 某个线程进入WATING状态
 * 5. 死锁
 *
 * @author zhouchaoqun
 * @date 2019/3/27 4:37 PM
 */
public class JvmDemoTest {

    static class OOMObject {
        private byte[] a = new byte[1024];
    }

    public static void main(String[] args) {
        List<OOMObject> list = new ArrayList<>();
        while (true) {
            list.add(new OOMObject());
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
